<?php
	// No direct access
	defined('_JEXEC') or die;
    jimport( 'joomla.application.component.view');
    class VolunteerViewEdittimespan extends JView
    {
		function display($tpl = null)
		{
			$model = $this->getModel('volunteer'); //get default model (volunteer)			

			$this->assignRef( 'currenttimespan', $model->getTimespan(JRequest::getVar('timespan')) );			
			
			$app = JFactory::getApplication();
			$data = $app->getUserState('volunteer.edittimespan.form.data');
				
			$this->assignRef( 'newtimespan', $data['newtimespan']);
					
			parent::display($tpl); //display defaul template
		}
    }